package com.monitor.web;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author tanlian
 * @Date 2018/9/20 16:12
 * @Desc
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.monitor.*"})
@MapperScan("com.monitor.web")
@Slf4j
public class Application {


    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class,args);
        log.info("start project success!");
    }
}
